/*
 * Sight.h
 *
 *  Created on: Feb 15, 2010
 *      Author: vuk
 */

#ifndef SMELL_H_
#define SMELL_H_

#include "NamedColorRangeHSV.h"

class Smell
{
	const int ESC;
	int ax, ay, bx, by;
	NamedColorRangeHSV *color;
	NamedColorRangeHSV c1;
	NamedColorRangeHSV c2;
	NamedColorRangeHSV c3;;
	VideoCapture cap;
	Mat rawframe;
	Mat filteredFrame;
	Mat helpFrame;
    bool isBeaconColor(Mat &workframe, int i, int j, NamedColorRangeHSV &c);

public:
	Smell();
	~Smell();


	void refresh();
	void showFilteredFrame();
	void showRawFrame();
	void showMiniRawFrame();
	void changeColors(const char &taster);
	void makeFilteredFrame();
	void sniff(int &x, int &distance);
	void getGoal();


	void prepere(char taster)
	{
	    refresh();
	    getGoal();
	    //showRawFrame();
	    showMiniRawFrame();
//	    changeColors(taster);
//	    makeFilteredFrame();
//	    showFilteredFrame();
	}


};

#endif /* SMELL_H_ */
